﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="EWDT.login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Q&A - Login Page</title>
    <style type="text/css">
        .style1
        {
            width: 25px;
            height: 245px;
        }
        </style>
      <link href="../style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body style="background: url(../images/img01.jpg); height: 564px">
    <form id="form1" runat="server" style="background-position: center center; background-image: none;
    height: 4px;">
    <table style="width: 363px; height: 411px; position: relative; top: 93px; left: 0px;"
        align="center" cellpadding="15">
        <tr><td><div id="LoginImage">
            <asp:Image ID="Logo" runat="server" ImageUrl="~/images/logo transparent.png" /></div></td></tr>
        <tr>
            <td class="style1" style="border: medium solid #4D8399; background-position: center;
                background-color: #FFFFFF;">

                <div class="loginFont">
                    <h1 class="LoginText">Login</h1>
                    Username:&nbsp;
                    <asp:TextBox ID="txtUsername" runat="server" Height="23px" Width="192px"></asp:TextBox>
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtUsername" ErrorMessage="Username required" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                    <br />
                    <br />
                    Password:&nbsp;
                    <asp:TextBox ID="txtpassword" runat="server" Height="23px" Width="192px" 
                        TextMode="Password"></asp:TextBox>
                    <br />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtpassword" ErrorMessage="Password required" 
                        ForeColor="Red"></asp:RequiredFieldValidator>
                        <br />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Label ID="lblError" runat="server" Text="Wrong Username or Password" 
                        ForeColor="Red" Visible="False"></asp:Label>
                        <br />
                    <div class="loginMargin">
                    <asp:Button ID="btnLogin" runat="server" BackColor="#E5D0B1" BorderColor="#5F99A7"
                        BorderStyle="Solid" Font-Bold="True" Font-Size="Medium" ForeColor="#E0634F" Height="40px"
                        Text="Login" Width="120px" OnClick="btnLogin_Click" /></div>
                </div>
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
